package com.walker.taogong.bll;

import java.util.List;

import com.walker.taogong.datamodel.Task;
import com.walker.taogong.datamodel.User;
import com.walker.taogong.datamodel.Worker;

public interface UserBll {
	
	/**
     * 用户注册
     * @param user
     * @return
     */
    public boolean createNewUser(User userData);
    
    /**
     * 用户登录
     * 
     * @param user
     * @return
     */
    public boolean login(User userData);
    /**
     * 用户登录
     * 
     * @param user
     * @return
     */
    public User login(String emailOrMobile, String password);
    /**
     * 用户退出
     * @param user
     * @return
     */
    public boolean logout(User userData);
    
    /**
     * 修改密码
     * @param user
     * @return
     */
    public boolean changePassword(User userData, String newPassword);
    
    /**
     * 根据邮件取得用户信息
     * 
     * @param email
     * @return
     */
    public User getUserByEmail(String email);

    public boolean updateUser(User userData);
    
    /**
     * 获得用户发布的任务
     * 
     * @param userData
     * @return
     */
    public List<Task> getMyTasks(User userData);
    
    public boolean createWorker(Worker worker);
    
    
    
    

}
